<?php


namespace app\api\controller\v1;


use app\common\controller\BaseController;
use app\common\model\Banner as BannerModel;

class Banner extends  BaseController
{
    public function index()
    {
        //获取banner
        $list = (new BannerModel())->getBannerList();
        return self::showResCode('获取成功',['list'=>$list]);
    }
}